package com.example.candiates.service.impl;

import com.example.candiates.domain.DigitalInterviewer;
import com.example.candiates.mapper.DigitalInterviewerMapper;
import com.example.candiates.service.DigitalInterviewerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DigitalInterviewerServiceImpl implements DigitalInterviewerService {
    
    @Autowired
    private DigitalInterviewerMapper digitalInterviewerMapper;
    
    @Override
    public DigitalInterviewer getById(Integer id) {
        try {
            return digitalInterviewerMapper.selectById(id);
        } catch (Exception e) {
            System.err.println("获取面试官信息失败: " + e.getMessage());
            return null;
        }
    }
} 